package com.tsy.server.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tsy.server.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色权限关联实体类
 */
@Data
@TableName("role_permission")
@ApiModel(value = "角色权限关联实体", description = "角色和权限关联的数据库实体类")
public class RolePermission extends BaseEntity {

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", example = "1")
    private Long roleId;

    /**
     * 权限ID
     */
    @ApiModelProperty(value = "权限ID", example = "1")
    private Long permissionId;
}